/* 商品列表的样式 */
.el-table {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.el-table:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.el-table th {
  font-size: 15px;
  padding: 15px 12px;
  background-color: #f0f7ff !important;
  font-weight: bold;
  color: #333;
}

.el-table td {
  font-size: 14px;
  padding: 12px;
  transition: background-color 0.2s ease;
}

.el-table tr:hover td {
  background-color: #f5f9ff !important;
}

.el-table .cell {
  text-align: center;
}

/* 按钮动画效果 */
.el-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.el-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.el-button.el-button--primary:hover {
  background-color: #66b1ff;
}

.el-button.el-button--danger:hover {
  background-color: #f78989;
}

/* 图片动画效果 */
.el-table img {
  transition: all 0.3s ease;
}

.el-table img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.el-footer {
  background-color: #409EFF;
  color: white;
  text-align: center;
  line-height: 40px;
  transition: background-color 0.3s ease;
}

/* 表格加载动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.el-table__body tr {
  animation: fadeIn 0.5s ease forwards;
  animation-delay: calc(var(--el-transition-duration) * 0.1s);
}

/* 确保每行有不同的延迟，创造级联效果 */
.el-table__body tr:nth-child(1) { animation-delay: 0.05s; }
.el-table__body tr:nth-child(2) { animation-delay: 0.1s; }
.el-table__body tr:nth-child(3) { animation-delay: 0.15s; }
.el-table__body tr:nth-child(4) { animation-delay: 0.2s; }
.el-table__body tr:nth-child(5) { animation-delay: 0.25s; }
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-header h2 {
  margin: 0;
  color: #409EFF;
  font-size: 20px;
  position: relative;
  padding-left: 12px;
}

.table-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: #409EFF;
  border-radius: 2px;
}

/* 商品表格样式 */
.product-table {
  border-radius: 8px;
  overflow: hidden;
}

/* 图片容器样式 */
.image-container {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.product-image:hover {
  transform: scale(1.05);
}

.image-error {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f5f7fa;
  color: #909399;
  font-size: 12px;
}

.image-error .el-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

/* 商品名称样式 */
.product-name {
  font-weight: 500;
  color: #303133;
}

/* 价格样式 */
.product-price {
  font-weight: bold;
  color: #ff6b6b;
  font-size: 16px;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 8px;
}

.dropdown-username {
  font-weight: 500;
  font-size: 14px;
}

.dropdown-menu {
  width: 240px;
  padding: 10px 0;
}

.dropdown-header {
  padding: 10px 20px;
  border-bottom: 1px solid #ebeef5;
}

.dropdown-header-tip {
  color: #909399;
  font-size: 12px;
  margin: 0;
}

.dropdown-header-user {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.dropdown-header-info {
  margin-left: 10px;
}

.dropdown-header-name {
  font-weight: bold;
  font-size: 14px;
}

.dropdown-header-email {
  font-size: 12px;
  color: #909399;
}

.avatar-uploader {
  width: 178px;
  height: 178px;
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.avatar-uploader:hover {
  border-color: #409EFF;
}

.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
}

.avatar {
  width: 178px;
  height: 178px;
  display: block;
  object-fit: cover;
}

.el-upload__tip {
  font-size: 12px;
  color: #606266;
  margin-top: 8px;
}